package org.dragonnova.lamp.message;

/**
 * Created by hucn on 2016/7/28.
 * Description: 一个解析结果的接口
 */

/**
 * * 指令格式：
 * ****************************** *
 * **   HEADER 2 bytes         ** *
 * **   REMOTE 1 bytes         ** *
 * **   LOCAL  1 bytes         ** *
 * **   LENGTH 2 bytes         ** *
 * **   ACTION 2 bytes         ** *
 * **   DEVICE 1 bytes         ** *
 * **   DATA   ? bytes         ** *
 * **   CS     2 bytes         ** *
 * ****************************** *
 */

public interface IMessage {

    void setRemoteId(byte id);

    byte getRemoteId();

    void setRemoteCommunicationType(byte type);

    byte getRemoteCommunicationType();

    void setLocalId(byte id);

    byte getLocalId();

    void setLocalCommunicationType(byte type);

    byte getLocalCommunicationType();

    void setAction(byte action);

    byte getAction();

    void setDeviceType(byte type);

    byte getDeviceType();

    byte[] getData();

    void setData(byte[] data);
}

